package com.informa.java.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;


public class CalendarUtils {

	private static DateFormat format;
	public static final String SHORT_MONTH_NAME = "MMM";
	public static final String FULL_MONTH_NAME = "MMMMM";
	
	public static int getCurrentYear() {
		return new CalendarBuilder().build().get(Calendar.YEAR);
	}
	
	public static String getCurrentMonth(String monthFormat) {
		format = new SimpleDateFormat(monthFormat);
		Calendar calendar = new CalendarBuilder().build();
		return format.format(calendar.getTime());
	}
}
